home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / hyper / hsc_source.lha / hsc / source / hsclib / entity.h < prev    next >
C/C++ Source or Header  |  1996-06-12  |  1KB  |  48 lines

  1. /*
  2. ** entity.h
  3. **
  4. ** entity structure, variables and functions
  5. **
  6. */
  7.  
  8. #ifndef HSCLIB_ENTITY_H
  9. #define HSCLIB_ENTITY_H
  10.  
  11. /*
  12. ** defines
  13. */
  14.  
  15. /*
  16. ** structures & typdefs for entities
  17. */
  18. typedef struct hscent {
  19.     STRPTR name;    /* name/id (eg &"uuml"; ) */
  20.     STRPTR replace; /* replace by (eg "ü" ) */
  21.     LONG   numeric; /* numeric code of entity ( eg &#"123"; ) */
  22. } HSCENT;
  23.  
  24. /* value for hscent.numeric to mark icon entities */
  25. #define ICON_ENTITY (-1)
  26.  
  27. /*
  28. **
  29. ** extern references
  30. **
  31. */
  32. #ifndef NOEXTERN_HSCLIB_ENTITY_H
  33.  
  34. extern HSCENT *new_hscent( STRPTR newid );
  35. extern VOID    del_entity( APTR data );
  36. extern HSCENT *cpy_hscent( HSCENT *oldent );
  37.  
  38. extern int     cmp_strent( APTR cmpstr, APTR entdata );
  39. extern int     cmp_nument( APTR cmpstr, APTR entdata );
  40. extern int     cmp_rplcent( APTR cmpstr, APTR entdata );
  41.  
  42. extern HSCENT *app_entnode( DLLIST *entlist, STRPTR entid );
  43. extern BOOL    add_ent( DLLIST *entlist, STRPTR entid, STRPTR entreplace, LONG num );
  44.  
  45. #endif /* NOEXTERN_HSCLIB_ENTITY_H */
  46.  
  47. #endif /* HSCLIB_ENTITY_H */
  48.